package com.qimingyu.linkedlist.singlylinkedlist;



public class TestSinglyLinkedList {
    public static void main(String[] args) {
        SinglyLinkedList list = new SinglyLinkedList();
        //测试头插法
//        list.addFirst(10);
//        list.addFirst(20);
//        list.addFirst(2);
//        list.addFirst(0);
//        list.addFirst(5);
//        list.loopPrint();

        //测试尾插法


        list.addTail(10);
        list.addTail(20);
        list.addTail(5);
        list.addTail(1);
        list.addTail(150);
        list.addTail(0);


        list.loopPrint();
        list.cleanList();
        list.loopPrint();
    }
}
